package com.haixiaoke.saas.common.constant;

/**
 * 智能锁常量
 *
 * @author xiaolong
 * @Date 2024/7/26
 */
public class LockConstants {
    /**
     * 用户类型: 1管理员 2租客
     */
    public static final String USER_TYPE_MANAGER = "1";
    public static final String USER_TYPE_TENANT = "2";


    /**
     * 人脸状态 : 1启用
     */
    public static final String FACE_STATE_ENABLED = "1";
    /**
     * 人脸状态 : 2禁用
     */
    public static final String FACE_STATE_DISABLE = "2";


    /**
     * 密码状态: 1有效 2过期
     */
    public static final String PWD_STATE_EFFECTIVE = "1";
    public static final String PWD_STATE_EXPIRED = "2";


    /**
     * 密码来源: 1后台生成 2租客生成
     */
    public static final String PWD_SOURCE_ADMIN = "1";
    public static final String PWD_SOURCE_TENANT = "2";


    /**
     * 密码类型: 1临时密码
     */
    public static final String PWD_TYPE_TEMPORARY = "1";

    /**
     * 开锁类型:1：永久密码 2：指纹 3：临时密码 4：远程开锁 5：蓝牙开锁 6：cookie开锁 7：门卡开锁
     * * 8- 撤防/布防 10：机械钥匙开门 11：反锁 12 - 门内开锁 13:装修密码 14:装修密码开锁失败 15:离线开锁 16:人脸开锁 17:胁迫报警
     */

    public static final Integer LOCK_TYPE_TEMPORARY_PASSWORD = 3;   // 临时密码
    public static final Integer LOCK_TYPE_FACE_OPEN = 16;         // 人脸开锁


    /**
     * 锁状态:1正常 2冻结
     */

    public static final String LOCK_STATE_NORMAL = "1";
    public static final String LOCK_STATE_FREEZE = "2";

    /**
     * 冻结类型: 1冻结 2解冻
     */
    public static final String FREEZE_TYPE_FREEZE = "1";
    public static final String FREEZE_TYPE_UNFREEZE = "2";


    /**
     * 冻结操作类型: 1自动 2手动
     */
    public static final String FREEZE_OPERATE_TYPE_AUTO = "1";
    public static final String FREEZE_OPERATE_TYPE_MANUAL = "2";


}
